import Layout from '@/layout/index.vue'

const userRouter = {
    path: '/user',
    name: 'User',
    component: Layout,
    meta: {
        title: '用户管理',
        icon: 'icon-yonghu1',
        addToSidebar: true,
        roles: ['admin']
    },
    children: [
        {
            path: '/logisticsCompany',
            name: 'LogisticsCompany',
            component: () => import('@/views/user/logisticsCompany.vue'),
            meta: { title: '物流公司', roles: ['admin'] }
        },
        {
            path: '/internalUser',
            name: 'InternalUser',
            component: () => import('@/views/user/internalUser.vue'),
            meta: { title: '内部用户', roles: ['admin'] }
        },

    ],

}

export default userRouter